package com.zdtech.action;

import javax.annotation.Resource;
import javax.persistence.criteria.CriteriaBuilder.In;

import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.zdtech.common.DataResult;
import com.zdtech.entity.TMenu;
import com.zdtech.entity.TUser;
import com.zdtech.service.BaseSerive;
@Controller
public class DelUserAction extends ActionSupport{
	
	private String id;
	private DataResult<TUser> dataResult = new DataResult<>();
	@Resource
	private BaseSerive baseSerive;
	
	public String execute() throws Exception {
		baseSerive.delUser(Integer.parseInt(id));
		dataResult.setSuccess(true);
		dataResult.setMessage("删除成功");
		return Action.SUCCESS;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public DataResult<TUser> getDataResult() {
		return dataResult;
	}

	public void setDataResult(DataResult<TUser> dataResult) {
		this.dataResult = dataResult;
	}
}
